HeapProfilerDomain

class HeapProfilerDomain : Domain

HeapProfilerDomain represents HeapProfiler protocol domain request/response operations and events that can be captured.

This API is marked as experimental in protocol definition and can change in the future.

Functions

addHeapSnapshotChunk
Link copied to clipboard
fun addHeapSnapshotChunk(): Flowable<AddHeapSnapshotChunkEvent>
Returns observable capturing all HeapProfiler.addHeapSnapshotChunk events.
addInspectedHeapObject
Link copied to clipboard
fun addInspectedHeapObject(input: AddInspectedHeapObjectRequest): Single<RequestResponseFrame>
Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
collectGarbage
Link copied to clipboard
fun collectGarbage(): Single<RequestResponseFrame>
description
Link copied to clipboard
fun description(): String
Returns domain description.
disable
Link copied to clipboard
fun disable(): Single<RequestResponseFrame>
enable
Link copied to clipboard
fun enable(): Single<RequestResponseFrame>
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
getDependencies
Link copied to clipboard
open override fun getDependencies(): List<Domain>
Returns list of dependant domains that should be enabled prior to enabling this domain.
getHeapObjectId
Link copied to clipboard
fun getHeapObjectId(input: GetHeapObjectIdRequest): Single<GetHeapObjectIdResponse>
getObjectByHeapObjectId
Link copied to clipboard
getSamplingProfile
Link copied to clipboard
fun getSamplingProfile(): Single<GetSamplingProfileResponse>
heapStatsUpdate
Link copied to clipboard
fun heapStatsUpdate(): Flowable<HeapStatsUpdateEvent>
If heap objects tracking has been started then backend may send update for one or more fragments
lastSeenObjectId
Link copied to clipboard
fun lastSeenObjectId(): Flowable<LastSeenObjectIdEvent>
If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp.
name
Link copied to clipboard
fun name(): String
Returns domain name.
reportHeapSnapshotProgress
Link copied to clipboard
fun reportHeapSnapshotProgress(): Flowable<ReportHeapSnapshotProgressEvent>
Returns observable capturing all HeapProfiler.reportHeapSnapshotProgress events.
resetProfiles
Link copied to clipboard
fun resetProfiles(): Flowable<RawEvent>
Returns observable capturing all HeapProfiler.resetProfiles events.
startSampling
Link copied to clipboard
fun startSampling(input: StartSamplingRequest): Single<RequestResponseFrame>
startTrackingHeapObjects
Link copied to clipboard
fun startTrackingHeapObjects(input: StartTrackingHeapObjectsRequest): Single<RequestResponseFrame>
stopSampling
Link copied to clipboard
fun stopSampling(): Single<StopSamplingResponse>
stopTrackingHeapObjects
Link copied to clipboard
fun stopTrackingHeapObjects(input: StopTrackingHeapObjectsRequest): Single<RequestResponseFrame>
takeHeapSnapshot
Link copied to clipboard
fun takeHeapSnapshot(input: TakeHeapSnapshotRequest): Single<RequestResponseFrame>

Sources

jvm source
Link copied to clipboard